//
//  THWAPI.h
//  Assistant
//
//  Created by 秦慕乔 on 2016/10/26.
//  Copyright © 2016年 秦慕乔. All rights reserved.
//

#import <Foundation/Foundation.h>


@interface THWAPI : NSObject


/**
  接口请求头 根据环境变量变化
 @param api api description
 @return <#return value description#>
 */
//测试
#define K_URL  @"http://abc.rmgs9.com/"
//正式
//#define K_URL  @"http://www.rmgs9.com/"
/**
 拼接API接口

 @param api <#api description#>
 @return <#return value description#>
 */

#define API(api) [NSString stringWithFormat:@"%@%@",K_URL,api]
#define H5API(api) [NSString stringWithFormat:@"%@%@",H5_URL,api]
#define isNSDic(var) var && [var isKindOfClass:[NSDictionary class]]

#define 登录注册
#define GetCode @"index.php/app/appusers/get_phoneCode"//获取短信验证码
#define ForgetGetCode @"index.php/app/appusers/get_phoneCode2"//忘记密码获取验证码
#define Regist @"index.php/app/appusers/userRegister"//注册
#define ForgetPSW @"index.php/app/appusers/forgetPwd"//忘记密码
#define EnsurePhoneNum @"index.php/app/appusers/forgetPwd1"//验证手机号是否被注册
#define EditPSW @"index.php/app/appusers/editUserloginPwd"//修改密码
#define Login @"index.php/app/appusers/user_login"//登录

#define 线下
#define LineDownHome @"app/Shopsline/index"//线下主页面
#define LDTopNext @"app/Shopsline/classShopList"//线下二级页面
#define LDStoreDetail @"app/Shopsline/home"//线下店铺详情
#define LDAddFav @"app/Favorites/add"//线下店铺添加收藏
#define LDCanceFav @"app/Favorites/cancel"//线下店铺取消收藏
#define LDAllClass @"app/Shopsline/classInfo"//线下全部分类
#define LDPay @"app/Shopsline/getLine"//线下支付详情
#define LDSubmitOrder @"app/Orders/submitline"//提交订单
#define LDBalancePay @"app/Wallets/getWalletsUrl"//余额支付
#define LDBalancePayNext @"app/Wallets/payByWallet"//余额支付下一步
#define LDSearch @"app/Shopsline/keywords"//线下搜索

#define 线上
#define LineOnHome @"index.php/app/appindex/index"//线上主页面
#define LOGoodsClass @"index.php/app/appindex/goodsCats"//线上商品分类
#define LOGoodsClassNext @"index.php/app/appindex/click_goodsCat1"//分类点击一级分类
#define LOGoodsList @"index.php/app/appindex/click_goodsCat3"//分类商品三级列表
#define LOAllGoodsList @"index.php/app/appindex/allGoods_pv"//所有商品的列表
#define LOSearch @"index.php/app/appindex/index_search"//线上搜索页面
#define LOSearchDelete @"index.php/app/appindex/delete_search"//线上搜索删除历史记录
#define LOAllCommand @"index.php/app/appgoods/goodsAppraises"//商品的全部评论
#define LOStoreList @"index.php/app/appshops/search_shops"//线上店铺列表
#define LOGoodsDetail @"app/App/GoodsDetail"//线上商品详情H5
#define LOStoreDetail @"index.php/app/appshops/shop_detail"//线上店铺详情
#define LOAddShoppingCar @"index.php/app/appcarts/add_carts"//添加购物车
#define LOShoppingCarList @"index.php/app/appcarts/chat_carts"//购物车列表
#define LOEditShoppingCar @"index.php/app/appcarts/editCarts"//修改购物车
#define LODelShoppingCar @"index.php/app/appcarts/delCartsGoods"//删除商品
#define LOSetShoppingCar @"index.php/app/appcarts/settleCarts"//购物车详情
#define LOSetHookBtn @"index.php/app/appcarts/cartsHookButton"//购物车选中按钮
#define LOCommitOrder @"index.php/app/apporders/submit"//提交订单
#define LOQuickPay @"index.php/app/appgoods/quickPay"//直接购买
#define LOQuickPayClick @"index.php/app/apporders/quicksubmits"//直接购买提交订单
#define LOChoosePay @"index.php/app/apporders/choosePay"//选择方式
#define LOGetwallet @"index.php/app/appwallets/getWalletsUrl"//获取钱包
#define LOPayByWallet @"index.php/app/appwallets/payByWallet"//余额支付
#define LOGetuseraward @"index.php/app/appuseraward/getuserawardUrl"//获取奖金
#define LOPayByUseraward @"index.php/app/appuseraward/payByUseraward"//奖金支付

#define 排名
#define RankHome @"app/App/Range"//排名页面H5

#define 我的
#define MineInfo @"app/Users/userResult"//我的信息
#define MineInfoCommit @"app/Users/userResultEdit"//我的信息提交
#define MineInfoPhoto @"app/Users/add_img"//我的头像上传
#define MineHome @"app/App/app"//我的主页面H5
#define MineColGoods @"app/Favorites/listGoodsQuery"//收藏的商品
#define MineColStore @"app/Favorites/listShopQuery"//收藏的店铺
#define MineAllOrder @"app/Orders/atByPage"//我的全部订单
#define MinePayOrder @"app/Orders/waitPayByPage"//待付款订单
#define MineSendOrder @"app/Orders/waitReceiveByPage"//待发货订单
#define MineReciveOrder @"app/Orders/waitdeliverysByPage"//待收货订单
#define MineAssessOrder @"app/Orders/waitAppraiseByPage"//待评价订单
#define MineRefundOrder @"app/Orders/abnormalByPage"//待退款
#define MineOrderDetail @"app/Orders/detailApp"//订单详情
#define MineOrderRefund @"app/Orders/toRefund"//订单退款
#define MineReceive @"app/Orders/receive"//确认收货
#define MineOrderRefundClick @"app/Orderrefunds/refund"//退款点击
#define MineRefundAddImg @"app/OrderRefunds/add_img"//退款上传图片
#define MineAssessAddImg @"app/GoodsAppraises/add_img"//评价上传图片
#define MineAssess @"app/Orders/orderAppraise"//显示评价信息
#define MineLOAssessClick @"app/GoodsAppraises/add"//线上提交评价
#define MineLDAssessClick @"app/GoodsAppraisesLine/add"//线下提交评价
#define MineScore @"app/Users/mycslist"//我的信用分
#define MineProfit @"index.php/app/appusers/person_value"//我的分润点
#define MineProfitDetail @"index.php/app/appusers/userPer_val"//我的分润点明细
#define MineAddress @"index.php/app/appuseraddress/userAddress"//我的地址
#define AddressChoose @"index.php/app/appuseraddress/chooseArea"//添加地址选择省份
#define MineAddAddress @"index.php/app/appuseraddress/add_userAddress"//添加地址
#define MineDefaultAddress @"index.php/app/appuseraddress/user_defaultaddress"//设置默认地址
#define MineDeteleAddress @"index.php/app/appuseraddress/delUserAddress"//删除地址
#define MineEditAddress @"index.php/app/appuseraddress/editUserAddress"//编辑地址
#define MineEditAddressClick @"index.php/app/appuseraddress/toeditUserAddress"//提交编辑地址
#define MineDealPSWPhone @"index.php/app/appusers/get_phoneCode1"//交易密码获取验证码
#define MineEditDeal @"index.php/app/appusers/userPayPassword"//修改交易密码
#define MineMessage @"app/Messages/userMessage"//消息列表
#define MineRead @"app/Messages/batchRead"//标记已读
#define MineMessageDel @"app/Messages/del"//消息删除
#define MineStoreIn @"app/Shopsline/toadd_applyopenshop"//店铺管理判断进入哪个页面
#define MineStoreFill @"app/Shopsline/editShoplineCheck"//店铺资料编辑页面
#define MineWallet @"index.php/app/appusers/user_money"//我的余额
#define MineAward @"index.php/app/appusers/user_award"//我的奖励
#define MineEqcode @"index.php/app/appusers/userEqcode"//我的二维码
#define MineShopIma @"app/Shopsline/file_img"//店铺入住上传照片
#define MineStoreFillClick @"app/Shopsline/editLine"//店铺入驻填写资料
#define MineTransfrom @"index.php/app/appusers/userawardTransfer"//转账页面
#define MineTransfromClick @"index.php/app/appusers/userAward_transfer"//转账点击
#define MinePickAddCount @"index.php/app/appusers/addCashAccount"//添加提现账户
#define MineTransformRecord @"index.php/app/appusers/transfer_log"//转账记录
#define MineChooseCount @"index.php/app/appusers/cashChooseAccount"//提现选择账户
#define MineChooseBank @"index.php/app/appusers/chooseArea"//选择银行
#define MinePickUpMoney @"index.php/app/appusers/drawaward_page"//提现页面的展示
#define MinePickUpClick @"index.php/app/appusers/drawMoney"//提现点击
#define MinePickUpRecord @"index.php/app/appusers/cashlogs"//提现记录
#define MineUserName @"app/App/profess"//职称管理H5
#define MineLevel @"app/App/degress"//等级管理H5
@end
